<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {$LOAD_STYLE.top|raw}
</head>
<body>
<style type="text/css">
.layui-table td,.layui-table th{
  text-align: center;
}
.layui-table .left{
  text-align: left;
}
.layui-table .right{
  text-align: right;
}
.cny{
  letter-spacing:10px;
}
.supp{
	color: #f56c6c;
}
header{
	text-align: center;
	font-size: 20px;
	margin-bottom: 10px;
}
</style>

<div class="row">
  <div class="layui-card-body">
	  <header>
		  订单详情
	  </header>

	  <div class="panel-body">
		  <div class="layui-col-md12" style="margin: 10px;">
			  <div class="layui-col-md6">
				  <p>客户名称：{$T.customer.name} &nbsp;&nbsp;
				  {if($T.wangid!='')}
				  <a target="_blank" href="http://www.taobao.com/webww/ww.php?ver=3&touid={$T.wangid??''}&siteid=cntaobao&status=2&charset=utf-8"><img border="0" src="http://amos.alicdn.com/realonline.aw?v=2&uid={$T.wangid??''}&site=cntaobao&s=2&charset=utf-8" alt="点击这里给我发消息" /></a>
				  {/if}
				  </p>
				  <p>隶属公司：{$T.customer.company} </p>
				  <!-- <p>联系电话：{$T.customer.phone} </p> -->
				  <p>客户地址：{$T.customer.province??''} {$T.customer.city??''} {$T.customer.area??''} {$T.customer.address??''} </p>
				  <empty name="T.kdnumber"><else/><p>物流 / 快递：{$T.courier}</p></empty>
			  </div>

			  <div class="layui-col-md6">
			  <p>订单编号：{$T.number} </p>
			  <p>支付方式：{$T.paytype} </p>
			  <p>订单状态：
					{if $T['status'] == 1}
					<span class="label label-success badge">已付</span>
					{elseif $T['status'] == 2 /}
					<span class="label label-danger badge">退货</span>
					{else/}
					<span class="label label-defualt badge">草稿</span>
					{/if}</p>
				  <p class="pull-right">下单时间：{$T.create_time|date="Y-m-d H:i:s"}</p>
			  </div>
		  </div>
		  <div class="table-box">
			<table class="layui-table">
			  <thead>
			  <tr>
				  <th width="6%">编号</th>
				  <th width="14%">品名</th>
				  <th width="5%">色号</th>
				  <th width="3%"></th>
				  <th width="7%">颜色</th>
				  <th width="3%">1</th>
				  <th width="3%">2</th>
				  <th width="3%">3</th>
				  <th width="3%">4</th>
				  <th width="3%">5</th>
				  <th width="3%">6</th>
				  <th width="3%">7</th>
				  <th width="3%">8</th>
				  <th width="6%">数量</th>
				  <th width="4%">-KG</th>
				  <th width="4%">单价</th>
				  <th width="6%">金额</th>
				  <th width="7%">供货商家</th>
				  <th width="7%">供货信息</th>
				  <th width="7%">批次 / 缸号</th>
			  </tr>
			  </thead>
			  <tbody>
			  {volist name="Tinfo" id="v"}
			  <tr>
				  <td>{$v.number}</td>
				  <td class="left">{$v.name}</td>
				  <td>{$v.color} #</td>
				  <td style="background:#{$v.colorval}"></td>
				  <td>{$v.colorname}</td>
				  {php}
				  foreach($v['weight'] as $val){
					 echo '<td>'.$val.'</td>';
				  }
				  {/php}
				  <td>{$v.count} {$v.unit}</td>
				  <td>{if $T['reduce'] > 0}-{$v.reduce}{/if}</td>
				  <td>{$v.unitprice|price_one}</td>
				  <td class="right">{$v.total|price}</td>
				  <td class="supp">{$v.sup_name}</td>
				  <td class="supp">{$v.onumber} # {$v.ocolorid}</td>
				  <td>{$v.bacth}</td>
			  </tr>
			  {/volist}
			  {php}
			  $len=10-count($Tinfo);
			  if($len>0){
				for($i=0;$i<=$len;$i++){
				  echo '<tr><td>&nbsp;</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>';
				}
			  }
			  {/php}
			  <tr>
				  <td colspan="9" style="text-align:left; padding-left:20px;">总金额（大写）RMB ：<span class="cny">{$T.total|cny}</td>
				  <td colspan="3">共 {$T.volume} 匹</td>
				  <td colspan="2">数量：{$T.count}</td>
				  <td colspan="1">{if $T['reduce'] > 0}- {$T.reduce} KG{/if}</td>
				  <td colspan="3">
					  {if $T['freight'] > 0}运费：&yen; {$T.freight|price_one}&nbsp;&nbsp;{/if}
					  {if $T['coupon'] > 0 && $T['paytype']=='公账开票'}税费：&yen; {$T.coupon|price_one}&nbsp;&nbsp;{/if}
					  {if $T['coupon'] > 0 && $T['paytype']!='公账开票'}差价：&yen; {$T.coupon|price_one}&nbsp;&nbsp;{/if}
					  {if $T['coupon'] < 0}优惠：&yen; {$T.coupon|price_one}&nbsp;&nbsp;{/if}
				  </td>
				  <td colspan="2">合计：{$T.total|price} 元</td>
			  </tr>
			  {if $T['remark'] neq ''}
			  <tr>
				  <td colspan="1">备注：</td>
				  <td colspan="18" style="text-align:left">{$T.remark}</td>
			  </tr>
			  {/if}
			  {if $T['status'] == 2}
			  <tr>
				  <td colspan="1">退货时间：</td>
				  <td colspan="1" style="text-align:left">{$T.refundtime}</td>
				  <td colspan="2">退货原因：</td>
				  <td colspan="15" style="text-align:left">{$T.refundtxt}</td>
			  </tr>
			  {/if}
			  </tbody>
		  </table>
		  </div>
	  </div>
  </div>
</div>

{$LOAD_STYLE.bottom|raw}
</body>
</html>